package com.whfc.ms.api.energy.service.impl;

import com.whfc.common.exception.BizException;
import com.whfc.env.entity.EnergyElectricityData;
import com.whfc.env.service.EnergyElectricityDataService;
import com.whfc.ms.api.energy.service.MsEnergyElectricityDataService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class MsEnergyElectricityDataServiceImpl implements MsEnergyElectricityDataService {

    @DubboReference(interfaceClass = EnergyElectricityDataService.class, version = "1.0.0")
    private EnergyElectricityDataService energyElectricityDataService;



    @Override
    public EnergyElectricityData detailByTime(Integer deviceId, Date date) throws BizException {
        return energyElectricityDataService.detailByTime(deviceId,date);
    }

    @Override
    public List getEnergyElectricityWarnRule() {
        return energyElectricityDataService.getEnergyElectricityWarnRule();
    }
}
